package org.yanh.es.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.yanh.es.domain.Poem;

import java.util.List;

@Mapper
public interface PoemMapper extends BaseMapper<Poem> {

    //后台分页查询所有
    List<Poem> findByPage(@Param("start") Integer start, @Param("size") Integer size);

    //后台查询所有记录数
    Long findTotalCounts();

    List<Poem> findAll();
}
